Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle more heading levels #3060

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

colleenmcginnis
Copy link
Contributor

In support of elastic/observability-docs#4230

In elastic/observability-docs#4230 I noticed that page subheadings in deeply-nested pages weren't working as expected. The highest heading level I found was h10, but in this PR I added logic for up to h12. Here's an example of before/after this PR:

Before
(h10, no formatting)
After
(h3, with formatting)
Screenshot 2024-09-10 at 2 57 48 PM Screenshot 2024-09-10 at 2 59 55 PM

Note: Headings beyond h6 are not technically valid HTML tags, but the build system will create them so we should handle them appropriately.

Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@bmorelli25
Copy link
Member

wow, passing tests on the first go? Waiting for the preview to review...

@colleenmcginnis colleenmcginnis merged commit 751b7cc into elastic:master Sep 12, 2024
5 checks passed
@colleenmcginnis colleenmcginnis deleted the more-heading-levels branch September 12, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants